{% load future wenlincms_tags wlcore_tags %}

{% spaceless %}
    {% if current_page.has_previous or current_page.has_next %}
        <ul class="am-pagination comment-pagination">
            <li class="page-info am-disabled">
                <span>第 {{ current_page.number }} / {{ current_page.paginator.num_pages }} 页&nbsp;&nbsp;</span>
            </li>
            {% if current_page.has_previous %}
                <li>
                    <a title="上一页" class="pointer"
                       onclick="wlajax('{{ commenturl }}?{{ page_var }}={{ current_page.previous_page_number }}',
                               'get', '{{ wlajaxid }}', '系统错误，请重试')">
                        <span class="am-icon-angle-left"></span>&nbsp;&nbsp;上一页</a>
                </li>
            {% else %}
                <li>
                    <a title="偶就是第一页" style="background-color: #fff"><span class="am-icon-angle-left"></span>&nbsp;&nbsp;上一页</a>
                </li>
            {% endif %}
            {% if current_page.has_next %}
                <li>
                    <a title="下一页" class="pointer"
                       onclick="wlajax('{{ commenturl }}?{{ page_var }}={{ current_page.next_page_number }}',
                               'get', '{{ wlajaxid }}', '系统错误，请重试')">
                        下一页&nbsp;&nbsp;<span class="am-icon-angle-right"></span></a>
                </li>
            {% else %}
                <li>
                    <a title="偶就是最后一页" style="background-color: #fff">下一页&nbsp;&nbsp;<span
                            class="am-icon-angle-right"></span></a>
                </li>
            {% endif %}
            <li class="page-info am-disabled order">
                <span>最新排序&nbsp;&nbsp;<i class="am-icon-sort-amount-desc"></i></span>
            </li>
        </ul>
    {% endif %}
{% endspaceless %}
